<h1><%= current_user.login %></h1>

<table>
	<tr>
		<th>Title</th>
		<th>Description</th>
		<th>Rating</th>
		<th>Released on</th>
	</tr>

<% @movies.each do |movie| %>
	<tr>
		<td><%=h movie.title %></td>
		<td><%=h movie.description %></td>
		<td><%=h movie.rating %></td>
		<td><%=h movie.released_on %></td>
		<td><%=link_to 'Show', movie %></td>
	</tr>
<% end %>
</table>
